package com.victor.core.datascope;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * 数据范围
 */
public class DataScope {
    /**
     * key:限制范围的字段名称
     * val:限制范围的
     */
    private LinkedHashMap<String, List<Object>> scope = new LinkedHashMap<>();
    /**
     * 排除 即 not in 默认为false
     */
    private boolean exclude = false;

    public DataScope() {
    }

    public DataScope(LinkedHashMap<String, List<Object>> scope, boolean exclude) {
        super();
        this.scope = scope;
        this.exclude = exclude;
    }

    public DataScope(LinkedHashMap<String, List<Object>> scope) {
        super();
        this.scope = scope;
    }

    public DataScope(boolean exclude) {
        super();
        this.exclude = exclude;
    }

    public LinkedHashMap<String, List<Object>> getScope() {
        return scope;
    }

    public void setScope(LinkedHashMap<String, List<Object>> scope) {
        this.scope = scope;
    }

    public boolean isExclude() {
        return exclude;
    }

    public void setExclude(boolean exclude) {
        this.exclude = exclude;
    }


}
